import axios from "./axios";

export const getNews = (params)=>
    axios.get(`/news/pageList`,{params})

// export const getNews = (params)=>
//     axios.get(`/news/pageList`,{params:params})

// export const getNews = (page,type)=>
//     axios.get(`/news/pageList`,{params: {type,page}})

// export const getNews = (page,type)=>
//     axios.get(`/news/pageList?newsType=${type}&page=${page}`)
